﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI.WebControls;

/// <summary>
///DropDownListHelper 的摘要说明
/// </summary>
public class DropDownListHelper
{
    public static void Bind<T>(DropDownList _ddl, List<T> _list, string _name, string _value) where T:class
    {
        _ddl.DataSource = _list;
        _ddl.DataTextField = _name;
        _ddl.DataValueField = _value;
        _ddl.DataBind();
    }
}
